//IteratorClient.java
package iterator.inner;

/**
 *@author:youtubezou
 *@version:2012-8-5
 */
public class IteratorClient {
	public static void main(String[] args) {
		MyVector<Integer> vec = new MyVector<Integer>();
		for(int i = 0; i < 20; i++){
			vec.add(i);
		}
		MyIterator<Integer> iter = vec.iterator();
		while(iter.hasNext()){
			System.out.println(iter.next());
			//vec.add(3); test ContentModifiedException
		}
		
	}

}
